package com.ruifu.common.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruifu.common.eneity.BaseEntityPlus;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author nyr
 * @create 2019/12/23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("materiel_type")
public class MaterielType extends BaseEntityPlus implements Serializable {
    private static final long serialVersionUID = -8772456067332449209L;

    /**
     * 物料分类Id
     */
    @TableId(value = "mt_id", type = IdType.AUTO)
    private Long mtId;

    /**
     * 分类代码 必填
     */
    @TableField(value = "mt_code")
    private String mtCode;

    /**
     * 分类名称 必填
     */
    @TableField(value = "mt_class_name")
    private String mtClassName;

    /**
     * 类别：g- 产品 p- 零部件  m- 原材料
     */
    @TableField(value = "mt_class")
    private String mtClass;

    /**
     * 父物料分类ID：根默认为0
     */
    @TableField(value = "mt_father_id")
    private Long mtFatherId;

    /**
     * 备注 说明
     */
    @TableField(value = "mt_remark")
    private String mtRemark;

    /**
     * 物料扩展属性集合定义
     */
    @TableField(value = "mt_extend_attribute")
    private String mtExtendAttribute;
}
